Skip to content

Class: ManagerBase<T> ​

csharp
[LogicUpdatePriority(-380)]
public class ManagerBase<T> : LogicBehaviour, ILogicUpdate where T : LogicBehaviour

Properties ​

NameDeclarationDescription
instancepublic static T instance { get; }If you expect the instance to be null, you MUST USE softInstance in Update loops.This will call FindObjectOfType if current instance is null, which can be very expensive.
softInstancepublic static T softInstance { get; }

Methods ​

Awake() ​

csharp
protected virtual void Awake()

OnDisable() ​

csharp
protected override void OnDisable()

OnEnable() ​

csharp
protected override void OnEnable()

Maintained by the Shape of Dreams Modding Community